src/ostree: Add --group option to ostree config
authorSinny Kumari <sinny@redhat.com>
Fri, 17 Aug 2018 15:55:56 +0000 (21:25 +0530)
committerAtomic Bot <atomic-devel@projectatomic.io>
Mon, 20 Aug 2018 14:31:15 +0000 (14:31 +0000)
commitdde3f1c0fb4d33c50968159a5843821c976f0c49
tree8c23bb79cffdf4d92baaef91342c523c4526f967
parente7305bbc8a262d595c7d1c507be7fba0e5a88d06
src/ostree: Add --group option to ostree config

Fetching value from a repo config using 'ostree config
get SECTIONNAME.KEYNAME' didn't work in some cases like
when having dots in Group Name entry.
As per Desktop entry file specification, Group Name
may contain all ASCII characters except for [ and ]
and control characters.
Link - https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-1.1.html

Having --group option will help user to clearly specify
Group Name and get desired result.

It also adds test for ostree config get|set and bash
completion for --group option

Fixes https://github.com/ostreedev/ostree/issues/1565

Closes: #1696
Approved by: cgwalters
Makefile-tests.am
bash/ostree
man/ostree-config.xml
src/ostree/ot-builtin-config.c
tests/test-config.sh [new file with mode: 0755]